﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace zUfDsl
{
    public static class DateTimeExt
    {
        public static DateTime getMonthStart(this DateTime dtime)
        {
            return new DateTime(dtime.Year, dtime.Month, 1);
        }
        public static DateTime getYearStart(this DateTime dtime)
        {
            return new DateTime(dtime.Year, 1, 1);
        }
    }
}
